package com.sr.maven.service.impl;

import com.sr.maven.dao.api.MemorialsDao;
import com.sr.maven.dao.impl.MemorialsDaoImpl;
import com.sr.maven.entity.Memorials;
import com.sr.maven.service.MemorialsService;

import java.util.List;

public class MemorialsServiceImpl implements MemorialsService {

    private MemorialsDao memorialsDao = new MemorialsDaoImpl();


    @Override
    public List<Memorials> getAllMemorialsDigest() {

      return memorialsDao.selectAllMemorialsDigest();
    }

    @Override
    public Memorials getMemorialsById(String memorialsId) {
        return memorialsDao.selectMemorialsById(memorialsId);
    }

    @Override
    public void updateMemorialsStatus(String memorialsId, int i) {
        memorialsDao.updateMemorialsStatus(memorialsId,i);
    }

    @Override
    public void updateFeedback(String memorialsId, String content) {
        memorialsDao.updateFeedback(memorialsId,content);
    }
}
